home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
301-325
/
disk_319
/
cnewssrc
/
cnews.src.lzh
/
libc
/
closeall.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-07-05
|
325b
|
21 lines
#ifndef AMIGA
# include <sys/param.h>
#else
# include <stdio.h>
# ifndef MCH_AMIGA
# define NOFILE _NFILE /* For Lattice */
# else
# define NOFILE MAXSTREAM /* For Manx */
# endif
#endif /* AMIGA */
void
closeall(leavestd)
int leavestd;
{
register int i;
for (i = (leavestd? 3: 0); i < NOFILE; i++)
close(i);
}